//
//  DynamicTableViewCell.m
//  Item A House
//
//  Created by dlios on 15/5/25.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "DynamicTableViewCell.h"

@implementation DynamicTableViewCell
- (void)dealloc
{
    [_titleLabel release];
    [_inforLabel release];
    [super dealloc];
    
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createLabel];
    }
    return self;
}
- (void)createLabel
{
    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 20, [UIScreen mainScreen].bounds.size.width, 20)];
    self.titleLabel.font = [UIFont systemFontOfSize:17];
    [self.contentView addSubview:self.titleLabel];
    [self.titleLabel release];
    
    self.inforLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 30, self.contentView.frame.size.width - 30, 60)];
    self.inforLabel.font = [UIFont systemFontOfSize:17];
    self.inforLabel.textColor = [UIColor colorWithWhite:0.3 alpha:0.8];
    self.inforLabel.numberOfLines = 2;
    [self.contentView addSubview:self.inforLabel];
    [self.inforLabel release];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
